/**
 * 基础路由
 * @type { *[] }
 */

const constantRouterMap = [
  {
    path: '/',
    component: () => import('@/layouts/MyAppSider.vue'),
    children: [
      {
        path: '/wood/stock/list',
        name: 'WoodStockList',
        component: () => import('@/views/os/woodstock/list.vue')
      },
      {
        path: '/framework/socket/ipc',
        name: 'FrameworkSocketIpc',
        component: () => import('@/views/framework/socket/Ipc.vue')
      },
      {
        path: '/framework/socket/httpserver',
        name: 'FrameworkSocketHttpServer',
        component: () => import('@/views/framework/socket/HttpServer.vue')
      },
      {
        path: '/framework/socket/socketserver',
        name: 'FrameworkSocketSocketServer',
        component: () => import('@/views/framework/socket/SocketServer.vue')
      }, 
      {
        path: '/framework/jsondb/index',
        name: 'FrameworkJsonDBIndex',
        component: () => import('@/views/framework/jsondb/Index.vue')
      },
      {
        path: '/framework/sqlitedb/index',
        name: 'FrameworkSqliteDBIndex',
        component: () => import('@/views/framework/sqlitedb/Index.vue')
      },
      {
        path: '/framework/jobs/index',
        name: 'FrameworkJobsIndex',
        component: () => import('@/views/framework/jobs/Index.vue')
      },
      {
        path: '/framework/updater/index',
        name: 'FrameworkUpdaterIndex',
        component: () => import('@/views/framework/updater/Index.vue')
      }, 
      {
        path: '/framework/software/index',
        name: 'FrameworkSoftwareIndex',
        component: () => import('@/views/framework/software/Index.vue')
      },
      {
        path: '/framework/java/index',
        name: 'FrameworkJavaIndex',
        component: () => import('@/views/framework/java/Index.vue')
      },
      {
        path: '/framework/testapi/index',
        name: 'FrameworkTestApiIndex',
        component: () => import('@/views/framework/testapi/Index.vue')
      },
      {
        path: '/os/file/index',
        name: 'OsFileIndex',
        component: () => import('@/views/os/file/Index.vue')
      },
      {
        path: '/os/file/pic',
        name: 'OsFilePic',
        component: () => import('@/views/os/file/Pic.vue')
      },
      {
        path: '/os/windowview/index',
        name: 'OsWindowViewIndex',
        component: () => import('@/views/os/windowview/Index.vue')
      },
      {
        path: '/os/window/index',
        name: 'OsWindowIndex',
        component: () => import('@/views/os/window/Index.vue')
      },
      {
        path: '/os/notification/index',
        name: 'OsNotificationIndex',
        component: () => import('@/views/os/notification/Index.vue')
      },
      {
        path: '/os/powermonitor/index',
        name: 'OsPowerMonitorIndex',
        component: () => import('@/views/os/powermonitor/Index.vue')
      },
      {
        path: '/os/screen/index',
        name: 'OsScreenIndex',
        component: () => import('@/views/os/screen/Index.vue')
      },
      {
        path: '/os/theme/index',
        name: 'OsThemeIndex',
        component: () => import('@/views/os/theme/Index.vue')
      },   
      {
        path: '/os/system/index',
        name: 'OsSystemIndex',
        component: () => import('@/views/os/system/Index.vue')
      },
    ]
  },
  {
    path: '/login',
    component: () => import('@/views/os/login/index.vue') // 设置登录页组件
  },
]

// const constantRouterMap = [
//   {
//     path: '/',
//     redirect: '/login'
//   },
//   {
//     path: '/login',
//     component: () => import('@/views/os/login/index.vue') // 设置登录页组件
//   },
//   {
//     path: '/framework/socket/ipc',
//     name: 'FrameworkSocketIpc',
//     component: () => import('@/views/framework/socket/Ipc.vue')
//   }
// ];


export default constantRouterMap